# -*- coding: utf-8 -*-
"""
Created on Tue Feb 14 10:29:06 2023

@author: TANGLI
"""

import requests
requests.adapters.DEFAULT_RETRIES = 5

def get_resp(url):
    headers = {
        'User-Agent':
        'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.140 Safari/537.36 Edge/18.17763'}
    resp = requests.get(url, headers=headers)
    resp.encoding = 'utf8'
    return resp

